import request from '@/util/request'

export function listAllCompany(data) {
  return request({
    url: '/auth/company/listAll',
    method: 'post',
    data
  })
}

export function listCompanyChild(data) {
  return request({
    url: '/auth/company/listChild',
    method: 'post',
    data
  })
}

export function pageGetAllCompany(data) {
  return request({
    url: '/auth/company/pageGetAll',
    method: 'post',
    data
  })
}

export function pageGetCompanyChild(data) {
  return request({
    url: '/auth/company/pageGetChild',
    method: 'post',
    data
  })
}

export function insertCompany(data) {
  return request({
    url: '/auth/company/insert',
    method: 'post',
    data
  })
}

export function updateCompany(data) {
  return request({
    url: '/auth/company/update',
    method: 'post',
    data
  })
}

export function updateUser(data) {
  return request({
    url: '/auth/company/updateUser',
    method: 'post',
    data
  })
}

export function updateParent(data) {
  return request({
    url: '/auth/company/updateParent',
    method: 'post',
    data
  })
}

export function updateCompanyStatus(data) {
  return request({
    url: '/auth/company/updateStatus',
    method: 'post',
    data
  })
}

export function deleteCompany(data) {
  return request({
    url: '/auth/company/delete',
    method: 'post',
    data
  })
}

export function getCompany(data) {
  return request({
    url: '/auth/company/get',
    method: 'post',
    data
  })
}

